﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="CodeOutliner" 
    targetNamespace="http://www.mindchemistry.com/Schemas/CodeOutliner.xsd"
    elementFormDefault="qualified"
    xmlns="http://www.mindchemistry.com/Schemas/CodeOutliner.xsd"
    xmlns:mstns="http://www.mindchemistry.com/Schemas/CodeOutliner.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
    xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" 
    xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" 
    attributeFormDefault="qualified">
  <xs:element name="CodeLocation">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="FileName" type="xs:string" minOccurs="0" />
        <xs:element name="LineNumber" type="xs:positiveInteger" minOccurs="0" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="OutlineEntry">
      <xs:complexType>
        <xs:sequence>
          <xs:element name="Name" type="xs:string" minOccurs="0" />
          <xs:element name="Description" type="xs:string" minOccurs="0" />
          <xs:element name="SubDocument" type="xs:string" minOccurs="0" />
          <xs:element ref="CodeLocation" />
          <xs:element name="SubEntries" minOccurs="0">
            <xs:complexType>
              <xs:choice>
                <xs:element ref="OutlineEntry" />
                <xs:element ref="BranchEntry" />
              </xs:choice>
            </xs:complexType>
          </xs:element>
        </xs:sequence>
      </xs:complexType>
  </xs:element>
  <xs:element name="BranchEntry">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Name" type="xs:string" minOccurs="0" />
        <xs:element name="Description" type="xs:string" minOccurs="0" />
        <xs:element name="SubEntries" minOccurs="0">
          <xs:complexType>
            <xs:choice>
              <xs:element ref="OutlineEntry" />
              <xs:element ref="BranchEntry" />
            </xs:choice>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>